// 定义公共颜色
$lightColor: #cdd5f7;
$darkColor: #646b8a;
$activeColor: #6b5bfd;
* {
    margin: 0;
    padding: 0;
    user-select: none;//禁止元素被选中
}
ul {
    list-style: none;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9ff;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 600px;
    //内容列表
    .content {
        display: flex;
        flex-wrap: wrap;//允许换行
        li {
            display: flex;
            //主轴向下
            flex-direction: column;
            //两端对齐
            justify-content: space-between;
            align-items: center;
            width: 100px;
            height: 100px;
            padding: 10px;
            i {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 70px;
                height: 70px;
                font-size: 30px;
                background-color: #fff;
                color:$darkColor;
                border-radius: 8px;
                cursor: pointer;
                transition: all 0.3s;
                box-shadow: 0 16px 32px rgba(90, 100, 130, 0.1);
                &:hover{
                    color:$activeColor;
                    transform: scale(1.2);
                }
            }
            p{
                font-size: 16px;
                color: $lightColor;
            }
        }
    };
    //分页列表
    .pagination {
        display: flex;
        align-items: center;
        height: 50px;
        margin-top: 30px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 16px 32px rgba(90, 100, 130, 0.1);
        li {
            width: 30px;
            height: 30px;
            margin: 10px;
            line-height: 30px;
            text-align: center;
            border-radius: 8px;
            //左右按钮
            &.page-btn {
                //默认为不可点击状态
                color: $lightColor;
                font-size: 22px;
                &.isClick {
                    color: $darkColor;
                    cursor: pointer;
                    &:hover {
                        color: #fff;
                        background-color: $activeColor;
                    }
                }
            }
            //数字按钮
            &.page-number {
                color:$darkColor;
                cursor: pointer;
                &:hover {
                    color: #fff;
                    background-color: $activeColor;
                    font-weight: bold;
                }
                //选中状态
                &.active {
                    color: #fff;
                    background-color: $activeColor;
                    font-weight: bold;
                    cursor: default;
                }
            }
            //省略号按钮
            &.page-dot {
                color: $lightColor;
                font-size: 18px;
                cursor: pointer;
                &:hover {
                    color: $activeColor;
                }
                &::after {
                    content: "more_horiz";
                }
                &.page-dot-prev:hover {
                    &::after {
                            content: "first_page";
                    }
                }
                &.page-dot-next:hover {
                    &::after {
                        content: "last_page";
                    }
            }
            }
        }
    }
}